package dongze.com.ckdj.databinding.model;

import android.databinding.BaseObservable;
import android.databinding.Bindable;
import android.databinding.ObservableField;
import android.graphics.drawable.Drawable;
import android.view.View;

import dongze.com.ckdj.BR;
import dongze.com.ckdj.databinding.Action;

/**
 * Created by fanqwz on 2017/8/7.
 */

public class ImageUploadListItemModel extends BaseObservable {
    public ObservableField<String> vin = new ObservableField<>();
    public ObservableField<String> type = new ObservableField<>();
    public ObservableField<String> state = new ObservableField<>();
    public ObservableField<String> detail = new ObservableField<>();
    public ObservableField<String> time = new ObservableField<>();
    public ObservableField<String> user = new ObservableField<>();
    public ObservableField<Integer> progress = new ObservableField<>();
    public ObservableField<String> img = new ObservableField<>();
    public ObservableField<View.OnClickListener> viewImage = new ObservableField<>();
    Action action;

    @Bindable
    public Action getAction() {
        return action;
    }

    public void setAction(Action action) {
        this.action = action;
        notifyPropertyChanged(BR.action);
    }
}
